<?php 
	if($_FILES){
        $filename = time().$_FILES['upload']['name'];
          $tmpname = $_FILES['upload']['tmp_name'];
          //保存图片到当前脚本所在目录
          if(move_uploaded_file($tmpname,dirname(__FILE__).'/'.$filename)){
            echo ('上传成功 目录：'.dirname(__FILE__).'\\'.$filename);
          }
    }
    /* $phpInput=file_get_contents('php://input');
    echo urldecode($phpInput); */
?>